package ${package.Service};

import ${superServiceClassPackage};
import ${package.Entity}.${entity};
import java.util.List;

import ${cfg.VO}.*;
import ${cfg.SaveDTO}.*;

/**
 * <p>
 * 业务接口
 * ${table.comment!?replace("\n","\n * ")}
 * </p>
 *
 * @author ${author}
 * @date ${date}
 */
<#if kotlin>
interface ${table.serviceName} : ${superServiceClass}<${entity}>
<#else>
public interface ${table.serviceName} extends ${superServiceClass}<${entity}> {
    /**
     * do转vo
     * @param model
    */
    ${entity}VO doToVo(${entity} model);
   /**
    * do转vo
    * @param modelList
   */
    List<${entity}VO> doToVos(List<${entity}> modelList);


   /**
    * 通用查询
    *
    * @param modelDTO DTO
    * @param ids 主键id集合
    * @return list
    */
   List<${entity}> list(${entity}DTO modelDTO, List<Long> ids);

  /**
  * 通用查询
  *
  * @param modelDTO DTO
  * @param ids 主键id集合
  * @return list
  */
  List<${entity}> listOfCache(${entity}DTO modelDTO, List<Long> ids);
}
</#if>
